<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>Title</title>
    <style>

    </style>
</head>
<body>
<script>
    /*
    *
    *   function createPerson(name,age,gender){
    *       var obj = new Object();
    *       obj.name = name
    *       obj.age = age
    *       obj.gender = gender
    *       obj.sayName = function(){
    *           console.log(this.name)
    *       }
    *       return obj
    *   }
    *
    *   var obj = createPerson('小黄'，18，'男')
    *   var obj = createPerson('小黑'，19，'女')
    *
    *
    * */
</script>
</body>
</html>